gusucode.com > MATLAB与控制系统仿真实践 源代码 > MATLAB与控制系统仿真实践 源代码/第四章/eg4_1.m
x=input('please input x:'); y=0; if x<0 y=-1 elseif x==0 y=0 else y=1 end